import http from '../utils/http';

export function getDelivery(params) {
    return http.get('/api/delivery', params);
}

export function addDelivery(params) {
    return http.post('/api/delivery', params);
}

export function updateDelivery(params) {
    return http.put(`/api/delivery/${params.id}`, params);
}

export function delDelivery(params) {
    return http.delete(`/api/delivery/${params.id}`, params);
}

export function getDeliveryDetail(params) {
    return http.get(`/api/delivery/${params.id}`, params);
}


